<?php echo $this->Session->flash(); ?>
<div id="loading" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>
<h1>ACTAS</h1>
<table id="tabla">
    <thead>
        <tr>
            <th>Id</th>
            <th>Fecha inicio</th>
            <th>Número acta</th>
            <th>Integrantes</th>
            <th colspan="3">Acciones</th>
        </tr>
    </thead>
    <tbody>

        <?php
        $agregar = true;
        foreach ($formActs as $formAct):
            ?>
            <tr>
                <td><?php echo $formAct['FormAct']['id'] ?></td>
                <td><?php echo $formAct['FormAct']['fecha_inicio_sesion'] ?></td>
                <td><?php echo $formAct['FormAct']['numero_acta'] ?></td>
                <td><?php echo $ajax->link('Panelistas', array('controller' => 'FormActUsers', 'action' => 'index', $formAct['FormAct']['id']), array('class' => 'actions', 'update' => 'content', 'indicator' => 'loading', 'escape' => false)); ?></td>
                <td><?php echo $ajax->link('Editar', array('controller' => 'FormActs', 'action' => 'edit', $formAct['FormAct']['id']), array('class' => 'actions', 'update' => 'content', 'indicator' => 'loading', 'escape' => false)); ?></td>
                <td><?php echo $ajax->link('Eliminar', array('controller' => 'FormActs', 'action' => 'delete', $formAct['FormAct']['id']), array('class' => 'actions', 'update' => 'content', 'indicator' => 'loading', 'escape' => false), "¿Desea eliminar el acta?"); ?></td>
                <td><?php echo $this->Html->link('Imprimir', array('controller' => 'FormActs', 'action' => 'print_letter', $formAct['FormAct']['id']), array('class' => 'actions', 'target' => 'blank')); ?></td>
            </tr>
            <?php
            $agregar = false;
        endforeach;
        ?>
    </tbody>
</table>
<br><?php if ($agregar) echo $ajax->link('Adicionar ', array('Controller' => 'FormActs', 'action' => 'add', $proyect_id), array('class' => 'actions', 'update' => 'content', 'indicator' => 'loading', 'escape' => false), "¿Desea agregar un acta?"); ?>
<br><br><br>